//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * messageModel
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
package com.gamutsoft.amb.message.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "MESSAGE")
public class Message implements java.io.Serializable {

	/**
	 * 
	 */
	private Long id ;
	/**
	 * 
	 */
	private String title ;
	/**
	 * 
	 */
	private String content ;
	/**
	 * 
	 */
	private String createTime ;
	/**
	 * 
	 */
	private String status ;

/** default constructor */
	public Message() {
	}

	/** minimal constructor */
   public Message(Long id) {
             this.id = id;
                              	
 } 
	

    /**
	 * 获取
	 * @return
	 */
    @Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false, scale = 0)
	public Long getId() {
		return this.id;
	}
	
	/**
	 * 设置
	 * @param id
	 */	
	public void setId(Long id) {
		this.id = id;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "title", length = 64)
	public String getTitle() {
		return title;
	}
	
	/**
	 * 设置
	 * @param title
	 */	
	public void setTitle(String title) {
		this.title = title;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "content", length = 256)
	public String getContent() {
		return content;
	}
	
	/**
	 * 设置
	 * @param content
	 */	
	public void setContent(String content) {
		this.content = content;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "create_time", length = 19)
	public String getCreateTime() {
		return createTime;
	}
	
	/**
	 * 设置
	 * @param createTime
	 */	
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

    /**
	 * 获取
	 * @return
	 */
	@Column(name = "status", length = 3)
	public String getStatus() {
		return status;
	}
	
	/**
	 * 设置
	 * @param status
	 */	
	public void setStatus(String status) {
		this.status = status;
	}
}